package com.xuecheng.content.service;


import com.xuecheng.content.model.dto.BindTeachplanMediaDto;
import com.xuecheng.content.model.dto.SaveTeachplanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import com.xuecheng.content.model.po.TeachplanMedia;

import java.util.List;

/**
 * @description 课程基本信息管理业务接口
 * @author Mr.M
 * @date 2022/9/6 21:42
 * @version 1.0
 */
public interface TeachplanService {
    /**
     * @description 查询课程计划树型结构
     * @param courseId  课程id
     * @return List<TeachplanDto>
     * @author Mr.M
     * @date 2022/9/9 11:13
     */
    public List<TeachplanDto> findTeachplanTree(long courseId);

    /**
     * @description 保存课程计划
     * @param saveTeachplanDto  课程计划信息
     * @return void
     * @author Mr.M
     * @date 2022/9/9 13:39
     */
    public void saveTeachplan(SaveTeachplanDto saveTeachplanDto);

    /**
     *  删除课程计划
     * @param teachplanId 课程id
     */
    public void deleteTeachplan(Long teachplanId);

    /**
     * 课程计划层级 下移
     * @param teachplanId 课程计划id
     */
    public void movedownTeachplan(Long teachplanId);

    /**
     * 课程计划层级 上移
     * @param teachplanId 课程计划id
     */
    public void moveupTeachplan(Long teachplanId);


    /**
     * @description 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.xuecheng.content.model.po.TeachplanMedia
     * @author Mr.M
     * @date 2022/9/14 22:20
     */
    public void associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

}